import request from '@/utils/request'

const LogstashApi = {
  Upload: '/logstash/upload',
  getVersionList: '/logstash/versionList'
}

export function getVersionList () {
  return request({
    url: LogstashApi.getVersionList,
    method: 'get'
  })
}

export function upload (parameter) {
  return request({
    url: LogstashApi.Upload,
    method: 'post',
    data: parameter
  })
}
